import os
from typing import List, Optional
from pydantic_settings import BaseSettings


class Settings(BaseSettings):
    APP_NAME: str = "AI_ENDPOINT"
    DEBUG: bool = False
    VERSION: str = "0.1.0"

    # Redis配置
    REDIS_HOST: str = "172.16.4.165"
    REDIS_PORT: int = 6379
    REDIS_PASSWORD: str = ""
    REDIS_DB: int = 0

    # ADD your config here
    LARGE_CHAT_MODEL: str = "gpt-4o-mini"
    OPENAI_LARGE_API_KEY: str = "xxx"
    OPENAI_LARGE_API_BASE: str = "xxxxxx"
    
    TEMP_DIR: str = "app/services/facetnet-python-master"
    class Config:
        env_file = ".env"
        env_file_encoding = "utf-8"
        case_sensitive = False


settings = Settings()
